﻿using Ninject;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Test.Account.common;
using Test.DataAccess;
using Test.DataAccess.POCO;

namespace Test.Account.Manager
{
    public   class ManagerBase
    {
        #region Properties
        [Inject]
        public IRepository<Admin> AdminProvider { get; set; }

        [Inject]
        public IRepository<Role> RoleProvider { get; set; }

        [Inject]
        public IRepository<Permission> PermissionProvider { get; set; }

        //[Inject]
        //public IRepository<User> UserProvider { get; set; }

        public SettingProvider SettingProvider { get; set; }

        public PasswordProvider PasswordProvider { get; set; }

        #endregion

        public ManagerBase()
        {
            SettingProvider = new SettingProvider();
            PasswordProvider = new PasswordProvider();
        }
    }
}
